package com.wish.wishhouse_foreclosure.controller;


import com.wish.wishhouse_foreclosure.service.ITMSequenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 序号表（取编号用） 前端控制器
 * </p>
 *
 * @author weijiaz
 * @since 2021-04-05
 */
@RestController
@RequestMapping("/tMSequence")
public class TMSequenceController {
    @Autowired
    private ITMSequenceService itmSequenceService;

    @RequestMapping("/getSerialNumber")
    public String getSerialNumber(String tpye) throws Exception {
        String type =  itmSequenceService.getSerialNumber(tpye);
        return type;
    }
}

